package com.atguigu.atcrowdfunding.manager.dao;

import com.atguigu.atcrowdfunding.bean.Member;
import com.atguigu.atcrowdfunding.bean.Permission;
import com.atguigu.atcrowdfunding.bean.User;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int deleteUserByLoginacct(String loginacct);

    int insert(User record);

    int insertMember(Member member);

    User selectByPrimaryKey(Integer id);

    List<User> selectAll();

    int updateByPrimaryKey(User record);

	User queryUserlogin(Map<String, Object> paramMap);

	Member queryUserRegister(String loginacct);


	//List<User> queryList(@Param("startIndex") Integer startIndex, @Param("pagesize")  Integer pagesize);

	//Integer queryCount();

    List<User> queryList(Map<String,Object> paramMap);

    Integer queryCount(Map<String,Object> paramMap);

    User queryUserById(Integer id);

    User queryUserByLoginacct(String loginacct);

    int deleteByPrimaryKeys(@Param("ids") int[] ids);

    List<Permission> queryPermissionByUserId(Integer id);
}